package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 拆卸后的价格要高于原价格，同时组装拆卸单的商品时直接出库和入库的，不受出入库管理的控制
 * </p>
 *
 * @author chenj
 * @since 2020-03-22
 */
public class JoinSplit extends Model<JoinSplit> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 是否关闭
     */
    private Boolean close;

    /**
     * 原商品出库地址
     */
    private String oldHouseId;

    /**
     * 新商品入库地址
     */
    private String newHouseId;

    /**
     * 单据编号
     */
    private String no;

    /**
     * 经办人id
     */
    private String userId;

    /**
     * 业务日期
     */
    private Date date;

    /**
     * 原商品总额
     */
    private BigDecimal oldTotalAmt;

    /**
     * 新商品总额
     */
    private BigDecimal newTotalAmt;

    /**
     * 备注
     */
    private String remark;

    /**
     * 制单人
     */
    private String makeUserId;

    /**
     * 制单时间
     */
    private Date makeTime;

    /**
     * 新增或更新时间
     */
    private Date time;

    /**
     * 所属公司id
     */
    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public Boolean getClose() {
        return close;
    }

    public void setClose(Boolean close) {
        this.close = close;
    }
    public String getOldHouseId() {
        return oldHouseId;
    }

    public void setOldHouseId(String oldHouseId) {
        this.oldHouseId = oldHouseId;
    }
    public String getNewHouseId() {
        return newHouseId;
    }

    public void setNewHouseId(String newHouseId) {
        this.newHouseId = newHouseId;
    }
    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
    public BigDecimal getOldTotalAmt() {
        return oldTotalAmt;
    }

    public void setOldTotalAmt(BigDecimal oldTotalAmt) {
        this.oldTotalAmt = oldTotalAmt;
    }
    public BigDecimal getNewTotalAmt() {
        return newTotalAmt;
    }

    public void setNewTotalAmt(BigDecimal newTotalAmt) {
        this.newTotalAmt = newTotalAmt;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getMakeUserId() {
        return makeUserId;
    }

    public void setMakeUserId(String makeUserId) {
        this.makeUserId = makeUserId;
    }
    public Date getMakeTime() {
        return makeTime;
    }

    public void setMakeTime(Date makeTime) {
        this.makeTime = makeTime;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "JoinSplit{" +
            "id=" + id +
            ", close=" + close +
            ", oldHouseId=" + oldHouseId +
            ", newHouseId=" + newHouseId +
            ", no=" + no +
            ", userId=" + userId +
            ", date=" + date +
            ", oldTotalAmt=" + oldTotalAmt +
            ", newTotalAmt=" + newTotalAmt +
            ", remark=" + remark +
            ", makeUserId=" + makeUserId +
            ", makeTime=" + makeTime +
            ", time=" + time +
            ", companyId=" + companyId +
        "}";
    }
}
